package com.yonyou.pmclouds.plan.planindex.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.plan.planindex.entity.PlanIndexVO;

import java.util.List;

public interface IPlanIndexMaintain {

    /**
     * 保存、删除指定的计划指标，提供给计划关联指标的接口
     *
     * @param indexVOLIst   保存的指标
     * @param deleteIndexes 删除的指标
     * @return
     * @throws BusinessException
     */
    List<PlanIndexVO> save(List<PlanIndexVO> indexVOLIst, List<String> deleteIndexes) throws BusinessException;

    /**
     * 删除
     *
     * @param pkPlanIndexList
     * @throws BusinessException
     */
    void delete(List<String> pkPlanIndexList) throws BusinessException;

    PlanIndexVO[] insert(PlanIndexVO[] indexVOS) throws BusinessException;

    PlanIndexVO[] insert(PlanIndexVO[] indexVOS, boolean isGenId) throws BusinessException;
}
